package com.heima.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.dtos.SensitiveDto;
import com.heima.model.wemedia.pojos.WmSensitive;

public interface WmSensitiveService extends IService<WmSensitive> {
    /**
     * 新增敏感词
     *
     * @param wmSensitive WM 敏感
     * @return {@link ResponseResult}
     */
    ResponseResult insert(WmSensitive wmSensitive);

    /**
     * 敏感词分页查询
     *
     * @param sensitiveDto 灵敏DTO
     * @return {@link ResponseResult}
     */
    ResponseResult PageQuery(SensitiveDto sensitiveDto);

    /**
     * 修改敏感词
     *
     * @param wmSensitive WM 敏感
     * @return {@link ResponseResult}
     */
    ResponseResult update(WmSensitive wmSensitive);

    /**
     * 删除敏感词
     *
     * @param id 编号
     * @return {@link ResponseResult}
     */
    ResponseResult deleteById(Integer id);
}
